const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function(app){
    app.use('/api', createProxyMiddleware({
        target: 'http://www.hjmin.com',
        changeOrigin: true,
        pathRewrite: {
            "^/api": ""
        }
      }))
      app.use('/app', createProxyMiddleware({
        target: 'https://hxq.komect.com',
        changeOrigin: true,
        pathRewrite: {
            "^/app": ""
        }
      }))
}
